using UnityEngine;
using System.Collections;

public class BallMove : MonoBehaviour 
{
		
	public int moveSpeed = 100;
	
	// Use this for initialization
	void Start () 
	{
	
	}
	
	// Update is called once per frame
	void Update () 
	{
		Vector3 newPosition = new Vector3(1,0,0) * (moveSpeed * Time.deltaTime);
		newPosition = transform.position +newPosition;
		transform.position = newPosition;
		
		if(newPosition.x > 140)Destroy(transform.gameObject);
	}
}
